const Service = require('../../../core/service/ApiService');

class AdminDao extends Service {

    async findAdminByAccount(account) {
        return this.model.Admin.findOne({
            where:{
                account:account
            },
            attributes:['id','account','pwd'],
            raw:true

        })

    }

    //教工登录
    async findStaffInfoByNumber(number) {
        return this.model.InfoStaff.findOne({
            where:{
                staff_number:number
            },
            attributes:['staff_number','staff_password'],
            raw:true

        })
    }

}

module.exports = AdminDao;

